<template>
  <div class="modifbox">
      <!-- 修改个人资料页面 -->
      <ul>
        <li class="modifList">
            <span>用户名</span>
            <input type="text" class="intext" v-model="modifyList.userName">
        </li>
        <li class="modifList">
            <span>真实姓名</span>
            <input type="text" class="intext">
            <select>
                <option value="公开">公开</option>
                <option value="不公开">不公开</option>
            </select>
        </li>
        <li class="modifList">
            <span>性别</span>
            <input type="text" class="mintext">
            <select>
                <option value="公开">公开</option>
                <option value="不公开">不公开</option>
            </select>
        </li>
        <li class="modifList">
            <span>生日</span>
            <input type="date" class="mintext">
            <select>
                <option value="公开">公开</option>
                <option value="不公开">不公开</option>
            </select>
        </li>
        <li class="modifList">
            <span>居住地</span>
            <input type="text" class="intext">
            <select>
                <option value="公开">公开</option>
                <option value="不公开">不公开</option>
            </select>
        </li>
        <li class="modifList">
            <span>邮箱</span>
            <input type="email" class="intext" v-model="modifyList.userEmail">
        </li>
        <li class="modifList">
            <span>个人主页</span>
            <input type="text" class="intext">
            <select>
                <option value="公开">公开</option>
                <option value="不公开">不公开</option>
            </select>
        </li>
        <li class="modifList">
            <span>个性签名</span>
            <input type="text" placeholder="他的签名还在环游世界~" class="intext" v-model="modifyList.userqm">
            <select>
                <option value="公开">公开</option>
                <option value="不公开">不公开</option>
            </select>
        </li>
      </ul>
      <div class="confirmBox">
          <button class="Confirm" @click="modify">确认修改</button>
      </div>
  </div>
</template>

<script>
export default {
    data(){
        return {
            modifyList:{
                userName:'',
                userEmail:'',
                userqm:'',
            }
        }
    },
    methods:{
        modify(){
            this.$parent.$parent.$emit('get',this.modifyList)
        }
    }
}
</script>

<style>
.modifbox{
    text-align: left;
    padding: 20px;
}
.modifList{
    width: 600px;
    height: 60px;
    line-height: 60px;
}
.modifList>.intext{
    width: 300px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.modifList>.mintext{
    width: 150px;
    height: 40px;
    line-height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.modifList>span{
    display: inline-block;
    width: 100px;
}
.modifList>input{
    padding-left: 3px;
}
.Confirm{
    width: 150px;
    height: 40px;
    background: #F68344;
    
}
.confirmBox{
    width: 500px;
    margin-top: 100px;
    text-align: center;
}
.modifList select{
    float: right;
    height: 25px;
    margin-top: 15px;
}
</style>